<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">

<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="col-sm-12">
        <div class="ibox">
            <div class="ibox-body">
                <div class="fixed-table-toolbar">
                    <div class="columns pull-left">
                        <button shiro:hasPermission="agent:add" type="button" class="btn  btn-primary" onclick="add()">
                            <i class="fa fa-plus" aria-hidden="true"></i>添加
                        </button>
                    </div>
                    <div class="columns pull-right">
                        <button class="btn btn-success" onclick="reLoad()">查询</button>
                    </div>
                    <div class="columns pull-right col-md-2 nopadding">
                        <input id="searchKey" type="text" class="form-control" placeholder="经销商名称">
                    </div>
                </div>
                <table id="exampleTable" data-mobile-responsive="true">
                </table>
            </div>
        </div>
    </div>
</div>

<!--shiro控制bootstraptable行内按钮看见性 -->
<script type="text/javascript">
    var s_edit_h = 'hidden';
    var s_change_h = 'hidden';
</script>
<script type="text/javascript" shiro:hasPermission="agent:edit">
    s_edit_h = '';
    s_change_h = '';
</script>

<div th:include="include :: footer"></div>
<script type="text/javascript" th:src="@{/js/appjs/agent/agent.js}"
        src="/static/js/appjs/agent/agent.js"></script>
</body>
</html>